package com.clps.rulesregulations.service;

import com.clps.rulesregulations.domain.Resource;
import com.clps.rulesregulations.util.ResourceTree;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * 资源逻辑接口
 *
 * @author zhangchao
 * @date 2018-11-06
 */
public interface ResourceService {
    PageInfo<Resource> findResourcesByPage(Map<String,Object> map);
    List<Resource> findAll();
    List<Resource> loadUserResources(Map<String,Object> map);
    List<Resource> findResourcesByRoleId(Integer roleId);

    void addResource(Resource resource);

    void delResource(Integer resourceId);
    void deleteAll(String[] ArrayDATA_IDS);

    Resource findResourceById(Integer resourceId);
    Resource findResourceByUrl(String url);

    void updateResource(Resource resource);

    List<ResourceTree> findAllAsTree();

    List<Resource> selectAll();

}
